package cn.pop.hsp_system_v2.Service.impl;


import cn.pop.hsp_system_v2.Service.TbAccountsService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.pop.hsp_system_v2.Pojo.TbAccounts;
import cn.pop.hsp_system_v2.Mapper.TbAccountsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class TbAccountsServiceImpl extends ServiceImpl<TbAccountsMapper, TbAccounts>
implements TbAccountsService {

    @Autowired
    private TbAccountsMapper tbAccountsMapper;

    @Override
    public IPage<TbAccounts> selectPage(Page<TbAccounts> page) {
        return tbAccountsMapper.selectPage(page, null);
    }

    @Override
    public IPage<TbAccounts> selectAccounts(Page<TbAccounts> page, QueryWrapper<TbAccounts> queryWrapper) {
        return tbAccountsMapper.selectPage(page, queryWrapper);
    }
}
